class Lei{
    int x;

    public Lei(int x) {
        this.x = x;
    }
}

public class Main {
    public static void main(String[] args) {
        Lei[] lei=new Lei[]{new Lei(1),new Lei(2),new Lei(3)};
        System.out.println(lei[0].x);
    }
}